package gat.common.util;

import java.util.Map;

import com.bitsun.core.common.constant.RuntimeContextHolder;
import com.bitsun.core.common.web.CurrentUser;

/**
 * @author sxq
 * @date 2022/1/12
 */
public class CurrentThread {


    /**
     * 获取当前线程的用户信息
     *
     * @return
     */
    public static CurrentUser getCurrentUser() {
        return RuntimeContextHolder.currentRuntimeContext().getCurrentUser();
    }

    public static Map<String,String> getHeaderMap() {
        return RuntimeContextHolder.currentRuntimeContext().getHeaderMap();
    }

}
